package com.dahua.messagesyncbj.config.result;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum Code {
    SUCCESS_CODE(200,"success"),
    LISTED_CODE(200,"loginSuccess"),
    COMMON_EXCEPTION_CODE(400,"common exception"),
    FAIL_CODE(500,"internal error");

    int code;
    String message;
    public int getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
